package com.stars.common.chart;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @ClassName PieChart  饼图
 * @Description:
 * @Author DJ
 * @Date 2019/10/28
 * @Version V1.0
 **/
@Data
public class PieChart{
    //表头
    private String title;
    //副表头
    private String subtext;
    //拆线名称
    private List<String> legendData;
    //拆线图数据
    private List<BigDecimal> seriesData;
    //报表类型
    private String chartType = ChartTypeEnum.LINE.getValue();
    private List<PieSeriesData> seriesMapData;

    public PieChart(){}
    public PieChart(String title,String subtext,List<String> legendData, List<PieSeriesData>  seriesMapData){
        this.title =title;
        this.subtext =subtext;
        this.legendData =legendData;
        this.seriesMapData = seriesMapData;
    }

}
